package com.gj.reggie.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author 郭嘉
 * @date 2023/1/7 - 16:23
 */
public class DataTimeUtils {

    public static LocalDateTime stringToLocalDateTime(String dataTime){
        DateTimeFormatter df=DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

        LocalDateTime dateTime=LocalDateTime.parse(dataTime,df);
        return dateTime;
    }
}
